<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
     class People {
        constructor(name,height,weight){
            this.name=name
            this.height=height;
            this.weight=weight;
        }
        say(){
            console.log(this.name+"hello")
        }
        static other="other"
        static hello(){
            console.log("jjjjjjj")
        }
    }
    class Student extends People{
        constructor(name,height,weight,num){
            super(name,height,weight)
            this.num=num;
        }
        say(){
            console.log("niuhbS")
        }
    }
    let people1 = new Student("张三",111,222,1)
    console.log(people1)
    people1.say();
</script>
</html>